<%--                                                                       --%>
<%-- Copyright (c) 2004-2005 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<script language="javascript" src="<%=request.getContextPath()%>/mt/js/userPopup.js"></script>

<script language="JavaScript">
 
function doListChannelProgramAction(theForm){
	if(theForm.name.value == 0){
		alert('<bean-el:message key="ep.report.channel.program.user.find.alert" bundle="ep.messages"/>');
		return false;
	}

	document.epChannelProgramByUserReportForm.pageTypeId.value=theForm.pageTypeId.value;
	document.epChannelProgramByUserReportForm.action='<c:url value="/ep/channelProgramByUserReportNavigate.do"/>';
	document.epChannelProgramByUserReportForm.submit();	
	return;
}
  
function setUserAlias(formName, fieldName, userAlias){

	document.epChannelProgramByUserReportForm.name.value=userAlias;
	document.epChannelProgramByUserReportForm.action='<c:url value="/ep/channelProgramByUserReport.do" />';
	document.epChannelProgramByUserReportForm.submit();

	return false;
}
</script>

<% String ctxPath = request.getContextPath(); %>


<html-el:form action="/ep/channelProgramByUserReportNavigate.do" onsubmit="return doListChannelProgramAction(this);">
<html-el:hidden property="id" />

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
    <td valign="top" width="100%">
      <div class="pageTitle">
      	<bean-el:message key="ep.report.title" bundle="ep.messages"/>: <bean-el:message key="ep.report.list.channel.program.user" bundle="ep.messages"/>
      </div>
      <div class="errorMessage"><html-el:errors bundle="ep.messages"/></div>
	  
      <div class="pageSubtitle">
        <span class="left"><bean-el:message key="ep.report.search.criteria" bundle="ep.messages"/></span>
      </div>
	  
      <table class="labelForm" width="100%" border="0" cellspacing="0" cellpadding="0" summary="report">
        <tr>
          <td class="label" width="20%">
            <bean-el:message key="ep.report.label.channel.program.select.user" bundle="ep.messages"/>:
          </td>
          <td class="label" width="80%">
            <html-el:text size="30" maxlength="50" property="name" readonly="true"/>&nbsp; 		
            <input type="button" name="browse" class="pageButton"
              value='<bean-el:message key="button.browse" bundle="ep.messages"/>'
              onclick="JavaScript:userSearchPopup('<html-el:rewrite page="/mt/userSearchPopup.do"/>',
              'epChannelProgramByUserReportForm', 'name')" >
          </td>
        </tr>
      
        <tr>
          <td class="label" width="20%">
            <bean-el:message key="ep.report.label.channel.program.pageType" bundle="ep.messages"/>:
          </td>
          <td class="labelField" width="80%">
  
          <html-el:select property="pageTypeId" size="1">
            <c:choose>				  
              <c:when test="${epChannelProgramByUserReportForm.map.name != ''}">
                <html-el:optionsCollection property="pageTypes" value="id" label="name"/>
              </c:when>
              <c:otherwise>
                <html-el:option key="ep.report.channel.program.user.pageType.label.no.value" value="0" bundle="ep.messages"/>
              </c:otherwise>
            </c:choose>
          </html-el:select>                        
          </td>
         </tr>
      </table>
      
      <div class="pageButtonWrap" align="right">
        <input hspace="40" type="submit" name="actionSearch" class="pageButton" value='<bean:message key="button.showResults" bundle="ep.messages"/>'>
      </div>
		</td>
	</tr>
</table>
</html-el:form>
